#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>

class RecordThread;

namespace Ui {
class Widget;
}

class WidgetRecord : public QWidget
{
    Q_OBJECT

public:
    explicit WidgetRecord(QWidget *parent = 0);
    ~WidgetRecord();

signals:
    void sigSendPixData(const QByteArray& data);

private slots:
    void on_colorBtn_clicked();

    void on_recordBtn_clicked();

private:
    int getValueWithin(const int& iMax);

protected:
    void timerEvent(QTimerEvent *event);

private:
    Ui::Widget *ui;

    RecordThread            *m_pRecordThread;

    int                     m_iRecordTimer;
};

#endif // WIDGET_H
